POST
/
api
/
agent-requests
curl --request POST \
--url https://api.useagentkey.com/api/agent-requests \
--header 'Content-Type: application/json' \
--header 'X-Client-ID: <api-key>' \
--data '{
"accessToken": "ak_access_abcd1234",
"action": "Create a post with the text '\''AgentKey integration is live! ๐Ÿš€'\''",
"startingUrl": "https://linkedin.com/feed",
"parameters": {
"content": "AgentKey integration is live! ๐Ÿš€"
},
"responseFormat": {
"postId": "string",
"postUrl": "string",
"success": "boolean"
}
}'
{
"success": true,
"data": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"status": "PENDING",
"providerId": "550e8400-e29b-41d4-a716-446655440001",
"action": "Create a post with the text 'Hello world!'",
"createdAt": "2024-01-15T10:30:00.000Z"
}
}

Authorizations

X-Client-ID
string
header
required

Client credential authentication requires two headers:

  • X-Client-ID: Your client identifier
  • X-Client-Secret: Environment-specific secret

Body

application/json

Response

201
application/json

Agent request created successfully

The response is of type object.