Create company with api

I am trying to create a company using the api and it is not recognizing my inputs. IT then returns a paginate array of nothing.

code using to request

$response = Http::withHeaders([
                                      'X-Api-Secret' =>'applesauce',
                                      'X-Api-Token' =>'Md93BGYIPpTY8Yu4kTIxBqC1er108aPPNkdFa04fymTyN1gzlOfWgfuHo09rog0q',
                                      'X-Requested-With' =>'X-Requested-With'
                                  ])
                    ->post('http://invoiceninja.lan/api/v1/companies', [
                        'description' => 'james company',
                        'payment_terms' =>0,
                        'reply_to_email' => 'replytoemail@gmail.com',
                        'settings.name' => 'James Company'
                    ]);
 
    dd($response->body());

response

{
    "data": [
        {
            "permissions": "",
            "notifications": {
                "email": []
            },
            "settings": {},
            "is_owner": true,
            "is_admin": true,
            "is_locked": false,
            "updated_at": 1624899448,
            "archived_at": 0,
            "created_at": 1624899448,
            "permissions_updated_at": 1624899448,
            "ninja_portal_url": ""
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 20,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

even thought i get this weird response it does create the company record though it is not visible in the web interface.

Hi,

I’ve replied to your question on Slack.

Note: please only post your questions in one place.

ok on the posting in one place. i dont see any reply on Slack

I’ve tagged you in the response